﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SourceControlEssentials
{
    class Mykhaylenko : IStudent
    {
        public override int GetHashCode()
        {
            return 12;
        }
        public int Id()
        {
            return GetHashCode();
        }

        public string GetLastName()
        {
            return "Mykhaylenko";
        }

        public string GetFirstName()
        {
            return "Lyubov";
        }

        public int GetGroup()
        {
            return 318;
        }

        public string MethodName()
        {
            return "Reverse words";
        }

        public string ExecuteStrategy(string value)
        {
            string[] words = value.Split(' ');
            Array.Reverse(words);
            return string.Join(" ", words);
        }


    }
}

